<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/box-template.xhtml">
	<ui:define name="box_title">#{appLabels.box_title_login}</ui:define>
	<ui:define name="box_content">
			<h:panelGrid columns="3" id="login_form" >
				<h:outputText value="#{appLabels.usuario_att_username}" />
				<p:inputText label="#{appLabels.usuario_att_username}" id="username" required="true" value="#{loginMB.username}" autocomplete="off"/>
				<p:watermark value="#{appLabels.watermark_username}" for="username"/>
				
				<h:outputText value="#{appLabels.usuario_att_password}" />
				<p:password label="#{appLabels.usuario_att_password}" id="password" feedback="false" value="#{loginMB.password}" required="true" autocomplete="off"/>
				<p:watermark value="#{appLabels.watermark_password}" for="password"/>
			</h:panelGrid>
			<p:commandButton value="#{appLabels.botao_login}" icon="securityIcon" update="box_form" action="#{loginMB.login}"/>
	</ui:define>
</ui:composition>

</html>